home *** CD-ROM | disk | FTP | other *** search
-
-
-
- aaaaffffIIIInnnniiiittttSSSSaaaammmmpppplllleeeeFFFFoooorrrrmmmmaaaatttt((((3333ddddmmmm)))) aaaaffffIIIInnnniiiittttSSSSaaaammmmpppplllleeeeFFFFoooorrrrmmmmaaaatttt((((3333ddddmmmm))))
-
-
-
- NNNNAAAAMMMMEEEE
- afInitSampleFormat, AFinitsampfmt, afInitByteOrder, afInitChannels,
- afInitRate - initialize the audio data format in an AAAAFFFFffffiiiilllleeeesssseeeettttuuuupppp for a
- specified audio track
-
- SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
- ####iiiinnnncccclllluuuuddddeeee <<<<ddddmmmmeeeeddddiiiiaaaa////aaaauuuuddddiiiiooooffffiiiilllleeee....hhhh>>>>
-
- vvvvooooiiiidddd aaaaffffIIIInnnniiiittttSSSSaaaammmmpppplllleeeeFFFFoooorrrrmmmmaaaatttt((((AAAAFFFFffffiiiilllleeeesssseeeettttuuuupppp sssseeeettttuuuupppp,,,, iiiinnnntttt ttttrrrraaaacccckkkk,,,,
- iiiinnnntttt ssssaaaammmmppppffffmmmmtttt,,,, iiiinnnntttt ssssaaaammmmppppwwwwiiiiddddtttthhhh))))
-
- vvvvooooiiiidddd aaaaffffIIIInnnniiiittttBBBByyyytttteeeeOOOOrrrrddddeeeerrrr((((AAAAFFFFffffiiiilllleeeesssseeeettttuuuupppp sssseeeettttuuuupppp,,,, iiiinnnntttt ttttrrrraaaacccckkkk,,,, iiiinnnntttt bbbbyyyytttteeeeoooorrrrddddeeeerrrr))))
-
- vvvvooooiiiidddd aaaaffffIIIInnnniiiittttCCCChhhhaaaannnnnnnneeeellllssss((((AAAAFFFFffffiiiilllleeeesssseeeettttuuuupppp sssseeeettttuuuupppp,,,, iiiinnnntttt ttttrrrraaaacccckkkk,,,, iiiinnnntttt cccchhhhaaaannnnnnnneeeellllssss))))
-
- vvvvooooiiiidddd aaaaffffIIIInnnniiiittttRRRRaaaatttteeee((((AAAAFFFFffffiiiilllleeeesssseeeettttuuuupppp sssseeeettttuuuupppp,,,, iiiinnnntttt ttttrrrraaaacccckkkk,,,, ddddoooouuuubbbblllleeee rrrraaaatttteeee))))
-
- PPPPAAAARRRRAAAAMMMMEEEETTTTEEEERRRR
- _s_e_t_u_p is an AAAAFFFFffffiiiilllleeeesssseeeettttuuuupppp structure, previously created by a call to
- aaaaffffNNNNeeeewwwwFFFFiiiilllleeeeSSSSeeeettttuuuupppp(3dm).
-
- _t_r_a_c_k is an integer which identifies an audio track in _s_e_t_u_p.
-
- Since all currently supported file formats contain only one
- audio track, the value AAAAFFFF____DDDDEEEEFFFFAAAAUUUULLLLTTTT____TTTTRRRRAAAACCCCKKKK should always be used
- here.
-
- _s_a_m_p_f_m_t an integer constant which denotes a sample format.
-
- _s_a_m_p_w_i_d_t_h a positive integer value which specifies the number of bits
- in a sample data point.
-
- _c_h_a_n_n_e_l_s is a positive integer value which indicates the number of
- interleaved audio channels in the audio track.
-
- _b_y_t_e_o_r_d_e_r is a positive integer token which indicates the byte order of
- the samples in the audio track.
-
- _r_a_t_e is a positive double-precision floating point value which
- specifies an audio sample rate in Hz to be associated with
- _t_r_a_c_k.
-
- aaaaffffIIIInnnniiiittttSSSSaaaammmmpppplllleeeeFFFFoooorrrrmmmmaaaatttt(((()))) initializes the sample format and width parameters
- in an AAAAFFFFffffiiiilllleeeesssseeeettttuuuupppp structure for an audio track.
-
- The following values may be used for _s_a_m_p_f_m_t
-
- AAAAFFFF____SSSSAAAAMMMMPPPPFFFFMMMMTTTT____TTTTWWWWOOOOSSSSCCCCOOOOMMMMPPPP
- Two's complement samples. This is currently the only legal value
- for AAAAIIIIFFFFFFFF(4)/AIFF-C and 9-32 bit WWWWAAAAVVVVEEEE(4) format files, and is a legal
- value for all other supported file formats as well.
-
-
-
-
- PPPPaaaaggggeeee 1111
-
-
-
-
-
-
- aaaaffffIIIInnnniiiittttSSSSaaaammmmpppplllleeeeFFFFoooorrrrmmmmaaaatttt((((3333ddddmmmm)))) aaaaffffIIIInnnniiiittttSSSSaaaammmmpppplllleeeeFFFFoooorrrrmmmmaaaatttt((((3333ddddmmmm))))
-
-
-
- AAAAFFFF____SSSSAAAAMMMMPPPPFFFFMMMMTTTT____UUUUNNNNSSSSIIIIGGGGNNNNEEEEDDDD
- Unsigned samples. This is the standard value for 1-8 bit WWWWAAAAVVVVEEEE(4)
- format files.
-
- AAAAFFFF____SSSSAAAAMMMMPPPPFFFFMMMMTTTT____FFFFLLLLOOOOAAAATTTT
- 32-bit floating point samples. This may be used with NNNNeeeeXXXXTTTT(4) and
- BBBBIIIICCCCSSSSFFFF(4) format files, as may AAAAFFFF____SSSSAAAAMMMMPPPPFFFFMMMMTTTT____TTTTWWWWOOOOSSSSCCCCOOOOMMMMPPPP.
-
- AAAAFFFF____SSSSAAAAMMMMPPPPFFFFMMMMTTTT____DDDDOOOOUUUUBBBBLLLLEEEE
- 64-bit double-precision floating point samples. Currently, this may
- only be used with the NNNNeeeeXXXXTTTT(4) format files.
-
- aaaaffffIIIInnnniiiittttBBBByyyytttteeeeOOOOrrrrddddeeeerrrr(((()))) initializes the byte order (big- or little-endian) of
- the samples in an AAAAFFFFffffiiiilllleeeesssseeeettttuuuupppp structure for an audio track.
-
- The following values may be used for _b_y_t_e_o_r_d_e_r
-
- AAAAFFFF____BBBBYYYYTTTTEEEEOOOORRRRDDDDEEEERRRR____BBBBIIIIGGGGEEEENNNNDDDDIIIIAAAANNNN
- Big-endian byte order samples. This is the only legal value for
- AIFF/AIFF-C, NNNNeeeeXXXXTTTT(4), BBBBIIIICCCCSSSSFFFF(4) and Sound Designer II (ssssdddd2222(4)) files,
- and is the default value.
-
- AAAAFFFF____BBBBYYYYTTTTEEEEOOOORRRRDDDDEEEERRRR____LLLLIIIITTTTTTTTLLLLEEEEEEEENNNNDDDDIIIIAAAANNNN
- Little-endian byte order samples. This is the standard value for
- WWWWAAAAVVVVEEEE(4) format files.
-
- aaaaffffIIIInnnniiiittttCCCChhhhaaaannnnnnnneeeellllssss(((()))) initializes the number of interleaved channels
- in an AAAAFFFFffffiiiilllleeeesssseeeettttuuuupppp structure for an audio track. Legal values vary
- depending on the file format (see aaaaffffIIIInnnniiiittttFFFFiiiilllleeeeFFFFoooorrrrmmmmaaaatttt(3dm)).
-
- aaaaffffIIIInnnniiiittttRRRRaaaatttteeee(((()))) initializes the sample rate in Hz in an AAAAFFFFffffiiiilllleeeesssseeeettttuuuupppp
- structure for an audio track. Most file formats have no restrictions on
- sample rate values, the exception being the NNNNeeeeXXXXTTTT(4) format, which
- requires integer values only.
-
- When a file is opened for writing by passing _s_e_t_u_p to aaaaffffOOOOppppeeeennnnFFFFiiiilllleeee(3dm),
- the track will be configured to store data according to the data format,
- width, number of channels, or sample rate specified.
-
- CCCCAAAAVVVVEEEEAAAATTTTSSSS
- The Audio File Library will continue to support additional file formats.
- The ability of these file formats to store data of various sample formats
- will vary. If you are choosing a file format other than the default
- format, you should make sure that you explicitly specify a sample format
- for this file's tracks which is compatible with that file format. See
- aaaaffffGGGGeeeettttSSSSaaaammmmpppplllleeeeFFFFoooorrrrmmmmaaaatttt(3dm) for important information about handling this
- situation.
-
- In the case where the audio track in a file is configured for
- compression, _s_a_m_p_f_m_t and _s_a_m_p_w_i_d_t_h should match the data format specified
- by the compression algorithm. For example, the software G.722 compressor
- expects to encode 16-bit two's complement linear PCM input data. In
-
-
-
- PPPPaaaaggggeeee 2222
-
-
-
-
-
-
- aaaaffffIIIInnnniiiittttSSSSaaaammmmpppplllleeeeFFFFoooorrrrmmmmaaaatttt((((3333ddddmmmm)))) aaaaffffIIIInnnniiiittttSSSSaaaammmmpppplllleeeeFFFFoooorrrrmmmmaaaatttt((((3333ddddmmmm))))
-
-
-
- addition, many compression formats have restrictions on sample rate
- and/or channel count as well. See aaaaffffIIIInnnniiiittttCCCCoooommmmpppprrrreeeessssssssiiiioooonnnn(3dm) for more
- information.
-
- SSSSEEEEEEEE AAAALLLLSSSSOOOO
- afNewFileSetup(3dm), afOpenFile(3dm), afWriteFrames(3dm),
- afSetVirtualSampleFormat(3dm), afGetVirtualSampleFormat(3dm),
- afInitCompression(3dm)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- PPPPaaaaggggeeee 3333
-
-
-
-